package com.wallet.constants;

/**
 * 交易常量类
 * @author zhangguangyuang
 */
public class BusinessConstants {
    /**
     * 付款交易生成redis-key前缀
     */
    public static final String PAY_ON = "pay-on";
    /**
     * 付款交易生成redis-key前缀
     */
    public static final String PAY_OVER_TIME_KEY = "pay-over-time:";
    /**
     * 退款交易生成redis-key前缀
     */
    public static final String REFUND_ON = "refund-on";
    /**
     * 退款交易生成redis-key前缀
     */
    public static final String REFUND_OVER_TIME_KEY = "refund-over-time:";

    /**
     * 交易有效期（秒）
     */
    // public static final Long BUSINESS_OVER_TIME = 30L * 60L;
    public static final Long BUSINESS_OVER_TIME = 10L;
    /**
     * 钱包增加
     */
    public static final String WALLET_ADD = "0";
    /**
     * 钱包减少
     */
    public static final String WALLET_SUB = "1";
    /**
     * 钱包读写锁
     */
    public static final String WALLET_READ_WRITE_LOCK_PREFIX = "wallet-read-write-lock";
    /**
     * 钱包缓存key
     */
    public static final String WALLET_DETAILS_PREFIX = "walletDetails:walletId";
}
